﻿using System;
using System.Globalization;

namespace Itau.IM.Common.Mainframe.Book
{
    [AttributeUsage(AttributeTargets.Property, Inherited = true, AllowMultiple = true)]
    public sealed class BookNumberFieldAttribute : BookFieldBaseAttribute
    {
        public int IntegerDigits { get; set; }
        public int DecimalDigits { get; set; }
        
        
        public BookNumberFieldAttribute(int StartIndex, int IntegerDigits)
            : base(StartIndex)
        {
            this.IntegerDigits = IntegerDigits;
        }

        public BookNumberFieldAttribute(int StartIndex, int IntegerDigits, int DecimalDigits)
            : this(StartIndex, IntegerDigits)
        {
            this.DecimalDigits = DecimalDigits;
        }

        public BookNumberFieldAttribute() : base(0) { }
    }
}
